﻿using AiMei.Redis.Wrapper;
using System;
using System.Diagnostics;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            Stopwatch stopwatch = new Stopwatch();
            RedisConnection redisConnection = new RedisConnection("127.0.0.1", 6379, "");
            IDatabase database = redisConnection.GetDatabase();
            stopwatch.Restart();

            for (int i = 0; i <100000; i++)
            {
                var value = database.StringGet("db");
                Console.WriteLine(value);
            }
            stopwatch.Stop();
            Console.WriteLine("耗时：{0}", stopwatch.ElapsedMilliseconds);
            Console.ReadLine();
        }
    }


}
